Setting up accels is an app action, so doing it from the app is
a more natural place than repeating it for each window (even if
the common case is a single window for the entire process lifetime).
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/4159>
this.set_child(this._webView);
this.maximize();
this.present_with_time(timestamp);
-
- this.application.set_accels_for_action('app.quit', ['<Primary>q', '<Primary>w']);
}
_syncUri() {
const action = new Gio.SimpleAction({name: 'quit'});
action.connect('activate', () => this.active_window.destroy());
this.add_action(action);
+
+ this.set_accels_for_action('app.quit', ['<Primary>q', '<Primary>w']);
}
vfunc_dbus_register(connection, path) {